package cn.glutnn.entity;


import java.io.Serializable;

import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * (Reserve)表实体类
 *
 * @author msh
 * @since 2024-10-25 09:36:26
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_reserve")
public class Reserve {
    //id@TableId
    private Integer id;

    //专家
    private String expertName;
    //咨询者
    private String questioner;
    //面积
    @NotBlank(message = "面积不能为空")
    private String area;

    @NotBlank(message = "地址不能为空")
    private String address;

    @NotBlank(message = "农作物名称不能为空")
    private String plantName;

    @NotBlank(message = "土壤条件不能为空")
    private String soilCondition;

    @NotBlank(message = "农作物条件不能为空")
    private String plantCondition;

    @NotBlank(message = "农作物详细信息不能为空")
    private String plantDetail;

    @NotBlank(message = "电话不能为空")
    private String phone;
    //留言
    private String message;
    //回答
    private String answer;

    private Integer status;

}

